<template>
  <div>
    <el-form :model="invoice" ref="invoice"  label-width="100px">
        <el-row>
          <el-col :span="12">
            <el-form-item label="发票图片">
              <el-image :z-index="zIndex" :preview-src-list="[invoice.invoiceUrl]"
                :src="invoice.invoiceUrl"  style="width: 80px;height: 80px;margin-left: 10px">
              </el-image>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="发票代码" width="400px">
              <span>{{ invoice.invoiceNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="发票号码" width="400px">
              <span>{{ invoice.invoiceCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="开票单位名称" width="400px">
              <span>{{ invoice.sellerName }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="配送方式" width="400px">
              <span>{{ invoice.deliverMethodName }}</span>
            </el-form-item>
          </el-col>
        </el-row>
    </el-form>

  </div>
</template>

<script>
  export default {
    props: ["invoice"],
    data() {
      return {
        zIndex: 3000,
      }
    },
    methods: {
    },
  };
</script>

<style scoped>
  .el-form-item {
    margin-bottom: 0;
  }
</style>
